/* 
* Cognity 
* Copyright (c) 2001-2003 Bravo Group 
* Copyright (c) 2003-2006 FinAnalytica 
* 
* 2007-2-2 - Lachezar Nedelchev - created 
*/

package com.avalonsql.core.db.drivers;

import com.avalonsql.core.configs.DriverDefinitionConfig;
import com.avalonsql.core.db.objects.api.IRootObject;
import com.avalonsql.core.db.objects.impl.Schema;
import com.avalonsql.core.db.objects.impl.StoredProcedure;
import com.avalonsql.core.db.objects.impl.View;

public class PostgreSQL8Driver extends DBDriver {

    public static final String NAME = "Postgres 8";

    public PostgreSQL8Driver(DriverDefinitionConfig driverDefinitionConfig, boolean loadDrivers) throws DBDriverInstatiationException {
        super(driverDefinitionConfig, loadDrivers);
    }

    public PostgreSQL8Driver(DriverDefinitionConfig driverDefinitionConfig) throws DBDriverInstatiationException {
        super(driverDefinitionConfig);

        supportedClasses.add(View.class);
        supportedClasses.add(StoredProcedure.class);

    }

    @Override
    public String getName() {
        return NAME;
    }

    @Override
    public Class<? extends IRootObject> getRootObjectClass() {
        return Schema.class;
    }

}
